/*
 * Created on 2005/4/12
 *
 */
package com.erp.app.util.popupSearchTemplate;

import javax.servlet.http.HttpSession;

import com.erp.framework.util.CommonUtil;

public class PopupSearchTemplateComponent {
    String templateId;
    HttpSession session = null;
    String sessionKeyStatus;
    String sessionValueStatus;
    String functionId;
    String eventSrc;
    boolean isExclusive;

    public PopupSearchTemplateComponent(String templateId, HttpSession session, String session_key_status,
            String session_value_status, String functionId) throws InvalidComponentArgumentException {
        this.session = session;
        this.sessionKeyStatus = session_key_status;
        this.sessionValueStatus = session_value_status;
        this.functionId = functionId;
        this.templateId = templateId;

        if (templateId == null || session == null || CommonUtil.isEmpty(session_key_status)
                || CommonUtil.isEmpty(session_value_status) || CommonUtil.isEmpty(functionId))
            throw new InvalidComponentArgumentException();
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getFunctionId() {
        return functionId;
    }

    public void setFunctionId(String functionId) {
        this.functionId = functionId;
    }

    public boolean isExclusive() {
        return isExclusive;
    }

    public void setExclusive(boolean isExclusive) {
        this.isExclusive = isExclusive;
    }

    public String getEventSrc() {
        return eventSrc;
    }

    public void setEventSrc(String pageEventSrc) {
        this.eventSrc = pageEventSrc;
    }

    public HttpSession getSession() {
        return session;
    }

    public void setSession(HttpSession session) {
        this.session = session;
    }

    public String getSessionKeyStatus() {
        return sessionKeyStatus;
    }

    public void setSessionKeyStatus(String sessionKeyStatus) {
        this.sessionKeyStatus = sessionKeyStatus;
    }

    public String getSessionValueStatus() {
        return sessionValueStatus;
    }

    public void setSessionValueStatus(String sessionValueStatus) {
        this.sessionValueStatus = sessionValueStatus;
    }
}
